package cc.autoapi.pucong.auto.flow.core.flow.execNode.entity.node;

import lombok.Data;

import java.io.Serializable;

/**
 * @author pucong
 * @description 节点关系 vo
 * @create 2024-09-24
 */
@Data
public class TaskNodeRelation implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 关系类型 0一般执行关系 1catch执行关系 2工具执行关系 3true执行关系 4false执行关系
     */
    private Integer relationType;

    /**
     * 源节点id
     */
    private String nodeFromId;

    /**
     * 目标节点id
     */
    private String nodeToId;


    public TaskNodeRelation(Integer relationType, String nodeFromId, String nodeToId) {
        this.relationType = relationType;
        this.nodeFromId = nodeFromId;
        this.nodeToId = nodeToId;
    }
}
